#!/bin/bash
source /etc/profile
echo $CI_PROJECT_PATH_SLUG

if [[ $env == 'dev' || $env == '' ]]; then
  export  env='dev'
  export  CI_BUILD_REF_NAME='develop'
elif [[ $env == 'uat' ]]; then
  export  env='uat'
  export  CI_BUILD_REF_NAME='uat'
elif [[ $env == 'prod' ]]; then
  export  env='prod'
  export  CI_BUILD_REF_NAME='master'
else
  echo  "Please enter env parameter 【dev|uat|prod】"
fi

SCRIPTS_DIR=$(dirname "$0")

echo "脚本路径:"+$SCRIPTS_DIR
sh $SCRIPTS_DIR/pc.sh || exit 1